package ThreadSync;

public class BankThread extends Thread {
	private BankAccount bankAccount;
	public BankThread(BankAccount account){
		bankAccount=account;
	}
	@Override
	public void run() {
		bankAccount.deposit(200);
	}

}
